#pragma once
#include "CC_Typedef.h"

class CC_TrayIcon
{
public:
	CC_TrayIcon(HWND hWnd, UINT uID, UINT nNotifyMsg, UINT hIconID , LPCTSTR lpTip = 0);
	virtual ~CC_TrayIcon();
public:
	UINT m_uTrayNotifyMsg;
	BOOL m_bVisibled;
	BOOL Rebuild();
	BOOL IsVisibled();
	BOOL SetTipText(LPCTSTR lpNewTipText);
	BOOL SetIcon(UINT hNewIconID);
	void SwitchIcon(UINT hNewIconID);
	BOOL HideIcon();
	BOOL ShowIcon();

private:
	NOTIFYICONDATA m_nidata;
};